﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="exam_modellist.aspx.cs" Inherits="SDF.Web.exam" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
  <title></title>
</head>
<body>
  <form id="form1" runat="server">
  <fieldset><legend>操作</legend>
    <div>
      <a href="exam_add.aspx">添加新项</a> <a href="exam_search.aspx">搜索</a></div>
  </fieldset>
  <fieldset><legend>foreach循环</legend>
    <%foreach (var item in ModelList)
      {
    %>
    <%=item.Id%>.<%=item.Title%>
    <a href="exam_edit.aspx?id=<%=item.Id%>">编辑</a><br />
    <%} %>
    <%=Pager %>
  </fieldset>
  </form>
</body>
</html>
